package edu.gdin.ecommerce.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.gdin.ecommerce.dao.OperLogDAO;
import edu.gdin.ecommerce.model.OperLog;
import edu.gdin.ecommerce.service.IOperLogService;
import edu.gdin.ecommerce.util.Pager;

@Service("OperLogService")
public class OperLogService implements IOperLogService {

	private OperLogDAO operLogDAO;

	public OperLogDAO getOperLogDAO() {
		return operLogDAO;
	}
	@Resource
	public void setOperLogDAO(OperLogDAO operLogDAO) {
		this.operLogDAO = operLogDAO;
	}
	
	/**
	 * 根据条件查询OperLog
	 * @param log
	 * @param operTime1
	 * @param operTime2
	 * @param currentPage
	 * @return
	 */
	public Pager queryLog(OperLog log, String operTime1, String operTime2, int currentPage) {
		return this.operLogDAO.query(log, operTime1, operTime2, currentPage);
	}
	
	
}
